<!-- 页头 -->
<div class="layui-header layui-fluid">
    <div class="" style="display:flex;flex-direction:row;justify-content:space-between;">
        <!-- LOGO -->
        <div class="">
            <a class="logo" href="/">
                <h1><strong>Gitbook You</strong></h1>
            </a>
        </div>
        <!-- 搜索框 -->
        <div style="margin:12px;" class="layui-hide-xs">
            <form method="get" action="/">
                <div class="layui-input-inline">
                    <input class="layui-input mrdoc-search-input" placeholder="<?php if (isset($query)&&$query) echo '搜索结果：'.$query;else echo '搜索文档'; ?>" name="kw"/>
                    <button type="submit" style="position: absolute;top:12px;right: 8px;border: none;background-color: white;">
                        <i class="layui-icon layui-icon-search" ></i>
                    </button>
                </div>
            </form>
        </div>
        <!-- 新建文档按钮 -->
        <div class="" style="">
            <ul class="layui-nav" style="">
                <li class="layui-nav-item">
                    <a href="/add">
                        <i class="layui-icon layui-icon-add-1"></i> <span class="">新建文档</span>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>
<!-- 页头结束 -->